﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001375 RID: 4981
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakePromotionRewardCsReq : IMessage<TakePromotionRewardCsReq>, IMessage, IEquatable<TakePromotionRewardCsReq>, IDeepCloneable<TakePromotionRewardCsReq>, IBufferMessage
	{
		// Token: 0x17003ECD RID: 16077
		// (get) Token: 0x0600DEFF RID: 57087 RVA: 0x002547D9 File Offset: 0x002529D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakePromotionRewardCsReq> Parser
		{
			get
			{
				return TakePromotionRewardCsReq._parser;
			}
		}

		// Token: 0x17003ECE RID: 16078
		// (get) Token: 0x0600DF00 RID: 57088 RVA: 0x002547E0 File Offset: 0x002529E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakePromotionRewardCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003ECF RID: 16079
		// (get) Token: 0x0600DF01 RID: 57089 RVA: 0x002547F2 File Offset: 0x002529F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakePromotionRewardCsReq.Descriptor;
			}
		}

		// Token: 0x0600DF02 RID: 57090 RVA: 0x002547F9 File Offset: 0x002529F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakePromotionRewardCsReq()
		{
		}

		// Token: 0x0600DF03 RID: 57091 RVA: 0x00254801 File Offset: 0x00252A01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakePromotionRewardCsReq(TakePromotionRewardCsReq other) : this()
		{
			this.promotion_ = other.promotion_;
			this.baseAvatarId_ = other.baseAvatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DF04 RID: 57092 RVA: 0x00254832 File Offset: 0x00252A32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakePromotionRewardCsReq Clone()
		{
			return new TakePromotionRewardCsReq(this);
		}

		// Token: 0x17003ED0 RID: 16080
		// (get) Token: 0x0600DF05 RID: 57093 RVA: 0x0025483A File Offset: 0x00252A3A
		// (set) Token: 0x0600DF06 RID: 57094 RVA: 0x00254842 File Offset: 0x00252A42
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Promotion
		{
			get
			{
				return this.promotion_;
			}
			set
			{
				this.promotion_ = value;
			}
		}

		// Token: 0x17003ED1 RID: 16081
		// (get) Token: 0x0600DF07 RID: 57095 RVA: 0x0025484B File Offset: 0x00252A4B
		// (set) Token: 0x0600DF08 RID: 57096 RVA: 0x00254853 File Offset: 0x00252A53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BaseAvatarId
		{
			get
			{
				return this.baseAvatarId_;
			}
			set
			{
				this.baseAvatarId_ = value;
			}
		}

		// Token: 0x0600DF09 RID: 57097 RVA: 0x0025485C File Offset: 0x00252A5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakePromotionRewardCsReq);
		}

		// Token: 0x0600DF0A RID: 57098 RVA: 0x0025486A File Offset: 0x00252A6A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakePromotionRewardCsReq other)
		{
			return other != null && (other == this || (this.Promotion == other.Promotion && this.BaseAvatarId == other.BaseAvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DF0B RID: 57099 RVA: 0x002548A8 File Offset: 0x00252AA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Promotion != 0U)
			{
				num ^= this.Promotion.GetHashCode();
			}
			if (this.BaseAvatarId != 0U)
			{
				num ^= this.BaseAvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DF0C RID: 57100 RVA: 0x00254900 File Offset: 0x00252B00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DF0D RID: 57101 RVA: 0x00254908 File Offset: 0x00252B08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DF0E RID: 57102 RVA: 0x00254914 File Offset: 0x00252B14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BaseAvatarId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.BaseAvatarId);
			}
			if (this.Promotion != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Promotion);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DF0F RID: 57103 RVA: 0x00254970 File Offset: 0x00252B70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Promotion != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Promotion);
			}
			if (this.BaseAvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BaseAvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DF10 RID: 57104 RVA: 0x002549C8 File Offset: 0x00252BC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakePromotionRewardCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Promotion != 0U)
			{
				this.Promotion = other.Promotion;
			}
			if (other.BaseAvatarId != 0U)
			{
				this.BaseAvatarId = other.BaseAvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DF11 RID: 57105 RVA: 0x00254A18 File Offset: 0x00252C18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DF12 RID: 57106 RVA: 0x00254A24 File Offset: 0x00252C24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Promotion = input.ReadUInt32();
					}
				}
				else
				{
					this.BaseAvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400585F RID: 22623
		private static readonly MessageParser<TakePromotionRewardCsReq> _parser = new MessageParser<TakePromotionRewardCsReq>(() => new TakePromotionRewardCsReq());

		// Token: 0x04005860 RID: 22624
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005861 RID: 22625
		public const int PromotionFieldNumber = 10;

		// Token: 0x04005862 RID: 22626
		private uint promotion_;

		// Token: 0x04005863 RID: 22627
		public const int BaseAvatarIdFieldNumber = 9;

		// Token: 0x04005864 RID: 22628
		private uint baseAvatarId_;
	}
}
